package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.YgabcBookTypeMapper;
import com.ruoyi.system.domain.YgabcBookType;
import com.ruoyi.system.service.IYgabcBookTypeService;

/**
 * ygabc_book_typeService业务层处理
 * 
 * @author ruoyi
 * @date 2022-06-15
 */
@Service
public class YgabcBookTypeServiceImpl implements IYgabcBookTypeService 
{
    @Autowired
    private YgabcBookTypeMapper ygabcBookTypeMapper;

    /**
     * 查询ygabc_book_type
     * 
     * @param id ygabc_book_type主键
     * @return ygabc_book_type
     */
    @Override
    public YgabcBookType selectYgabcBookTypeById(String id)
    {
        return ygabcBookTypeMapper.selectYgabcBookTypeById(id);
    }

    /**
     * 查询ygabc_book_type列表
     * 
     * @param ygabcBookType ygabc_book_type
     * @return ygabc_book_type
     */
    @Override
    public List<YgabcBookType> selectYgabcBookTypeList(YgabcBookType ygabcBookType)
    {
        return ygabcBookTypeMapper.selectYgabcBookTypeList(ygabcBookType);
    }

    /**
     * 新增ygabc_book_type
     * 
     * @param ygabcBookType ygabc_book_type
     * @return 结果
     */
    @Override
    public int insertYgabcBookType(YgabcBookType ygabcBookType)
    {
        return ygabcBookTypeMapper.insertYgabcBookType(ygabcBookType);
    }

    /**
     * 修改ygabc_book_type
     * 
     * @param ygabcBookType ygabc_book_type
     * @return 结果
     */
    @Override
    public int updateYgabcBookType(YgabcBookType ygabcBookType)
    {
        return ygabcBookTypeMapper.updateYgabcBookType(ygabcBookType);
    }

    /**
     * 批量删除ygabc_book_type
     * 
     * @param ids 需要删除的ygabc_book_type主键
     * @return 结果
     */
    @Override
    public int deleteYgabcBookTypeByIds(String[] ids)
    {
        return ygabcBookTypeMapper.deleteYgabcBookTypeByIds(ids);
    }

    /**
     * 删除ygabc_book_type信息
     * 
     * @param id ygabc_book_type主键
     * @return 结果
     */
    @Override
    public int deleteYgabcBookTypeById(String id)
    {
        return ygabcBookTypeMapper.deleteYgabcBookTypeById(id);
    }
}
